package org.xhystudy.rpc.config;

import lombok.Data;
import org.xhystudy.rpc.annotation.RpcReference;

/**
 * @description:  配置信息
 * @Author: Xhy
 * @gitee: https://gitee.com/XhyQAQ
 * @copyright: B站: https://space.bilibili.com/152686439
 * @CreateTime: 2023-04-25 10:47
 */
@Data
public class RpcProperties {

    /**
     * netty 端口
     */
    private int port;

    /**
     * 注册中心地址
     */
    private String registerAddr;

    /**
     * 注册中心类型
     */
    private String registerType;

    /**
     * 注册中心密码
     */
    private String registerPsw;

    static RpcProperties rpcProperties;

    public static RpcProperties getInstance(){
            if (rpcProperties == null){
                rpcProperties = new RpcProperties();
            }
        return rpcProperties;
    }
    private RpcProperties(){}



}
